 /*-----------------------------------------------File Info------------------------------------------------
** File Name:               loadMain.h  
** Last modified date:      20220620
** Last version:            V0.1
** Description:             
**
**--------------------------------------------------------------------------------------------------------            
** Created date:            20220620
** author:                  YLY
** Version:                 V0.1
** Descriptions:            应用程序配置
**--------------------------------------------------------------------------------------------------------*/

#ifndef __LOAD_MAIN_H_
#define __LOAD_MAIN_H_

#include <stdio.h>
#include "userConfig.h"


///* 临界段 */
//#define DISABLE_IRQ()  	__disable_irq()
//#define ENABLE_IRQ()  	__enable_irq()

//#define	ENTER_CRITICAL()	DISABLE_IRQ(); criticalNesting++;		/* 进入临界 */
//#define EXIT_CRITICAL()		if(--criticalNesting == 0){ENABLE_IRQ();}	/* 退出临界 */

typedef enum
{
	ISP_IDLE,			//空闲
	ISP_REQUEST,		//请求升级
	ISP_UPDATEING,		//升级中
	ISP_FINISH,			//升级完成
}teStatus;

typedef struct strIsp
{
	uint32_t time;	/* 等待升级超时 */
	teStatus status;
}tsIsp;

extern tsCfgGpio gtCfgIntOut;
#endif	/* __CONFIG_H_ */


